package com.ftg.learn.util;

import lombok.Getter;

@Getter
public enum RMessCommEnum {

    R_MESS_COMM_ENUM_SUCCESS(200, RMessComm.R_SUCCESS_MSG),
    R_MESS_COMM_ENUM_FAIL(500,  RMessComm.R_FAIL_MSG),
    R_MESS_COMM_ENUM_PASSWORD_ERROR(501,  RMessComm.R_PASSWORD_ERROR_MSG),
    R_MESS_COMM_ENUM_USER_NULL(502, RMessComm.R_USER_NULL_MSG),
    R_MESS_COMM_ENUM_PASSWORD_NULL(503, RMessComm.R_PASSWORD_NULL_MSG),
    R_MESS_COMM_ENUM_USER_NONE(504, RMessComm.R_USER_NONE_MSG),
    R_MESS_COMM_ENUM_CAPTCHA_NULL(505, RMessComm.R_CAPTCHA_NULL_MSG),
    R_MESS_COMM_ENUM_CAPTCHA_ERROR(506, RMessComm.R_CAPTCHA_ERROR_MSG),
    R_MESS_COMM_ENUM_TOKEN_NULL(507, RMessComm.R_TOKEN_NULL_MSG),
    R_MESS_COMM_ENUM_USER_EXIST(508, RMessComm.R_USER_EXIST_MSG),
    R_MESS_COMM_ENUM_CLASS_NULL(509, RMessComm.R_CLASS_NULL_MSG),
    R_MESS_COMM_ENUM_ROLE_NAME_EXIST(510, RMessComm.R_ROLE_NAME_EXIST_MSG),
    R_MESS_COMM_ENUM_ROLE_CODE_EXIST(511, RMessComm.R_ROLE_CODE_EXIST_MSG),
    R_MESS_COMM_ENUM_PERMISSION_TITLE_EXIST(512, RMessComm.R_PERMISSION_TITLE_EXIST_MSG),
    R_TOKEN_NONE(513, RMessComm.R_TOKEN_NONE_MSG), RABBITMQ_MESS_SEND_SUCCESS(200, RMessComm.RABBITMQ_MESS_SEND_SUCCESS);

    private int code;
    private String msg;

    RMessCommEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
